import request from '@/utils/request'

// 查询viewLog列表
export function listViewLog(query) {
  return request({
    url: '/system/viewLog/list',
    method: 'get',
    params: query
  })
}

// 查询viewLog详细
export function getViewLog(id) {
  return request({
    url: '/system/viewLog/' + id,
    method: 'get'
  })
}

// 新增viewLog
export function addViewLog(data) {
  return request({
    url: '/system/viewLog',
    method: 'post',
    data: data
  })
}

// 修改viewLog
export function updateViewLog(data) {
  return request({
    url: '/system/viewLog',
    method: 'put',
    data: data
  })
}

// 删除viewLog
export function delViewLog(id) {
  return request({
    url: '/system/viewLog/' + id,
    method: 'delete'
  })
}
